package com.app;

/*
  @author author
  @create 2020-11-23:9:37
  阿伟
*/

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//断路器
@EnableHystrix
//openfeign风格的调用方式
@EnableFeignClients
//消息中间件
@EnableRabbit
//redis缓存
@EnableCaching
//eureka客户端
@EnableEurekaClient
//事务管理
@EnableTransactionManagement
//Mp自动扫包
@MapperScan("com.app.dao")
@SpringBootApplication
public class AppApplication {
    public static void main(String[] args) {
        SpringApplication.run(AppApplication.class,args);
    }
}
